Skip to content

🔧 Configure Discord slash command contexts and integration types#2182

Merged
mkmccarty merged 1 commit intomainfrom
mm-branch-1
Feb 11, 2026
Merged

🔧 Configure Discord slash command contexts and integration types#2182
mkmccarty merged 1 commit intomainfrom
mm-branch-1

Conversation

@mkmccarty
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings February 11, 2026 01:32
@mkmccarty mkmccarty merged commit 0e6babf into main Feb 11, 2026
14 checks passed
@mkmccarty mkmccarty deleted the mm-branch-1 branch February 11, 2026 01:32
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Boost Bot Discord slash command definitions to explicitly declare supported interaction contexts and integration install types, aligning /update-related commands with the rest of the command set.

Changes:

  • Added Contexts to restrict the commands to guild interactions.
  • Added IntegrationTypes to restrict the commands to guild installs.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/boost/update_farmer.go Adds guild-only interaction contexts and guild-install integration type to the update farmer slash command.
src/boost/update_change.go Adds guild-only interaction contexts and guild-install integration type to the update contract/change slash command.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +19 to +25
Name: cmd,
Contexts: &[]discordgo.InteractionContextType{
discordgo.InteractionContextGuild,
},
IntegrationTypes: &[]discordgo.ApplicationIntegrationType{
discordgo.ApplicationIntegrationGuildInstall,
},
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This composite literal formatting looks like it hasn't been run through gofmt (e.g., field/value alignment differs from other command definitions). Please run gofmt on this file to keep formatting consistent and avoid noisy diffs later.

Copilot uses AI. Check for mistakes.
Comment on lines +14 to +20
Name: cmd,
Contexts: &[]discordgo.InteractionContextType{
discordgo.InteractionContextGuild,
},
IntegrationTypes: &[]discordgo.ApplicationIntegrationType{
discordgo.ApplicationIntegrationGuildInstall,
},
Copy link

Copilot AI Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This struct literal appears not to be gofmt-formatted (field/value alignment differs from other ApplicationCommand literals in the repo). Running gofmt on this file will standardize formatting and reduce future diff noise.

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant